﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

 
    public partial class frmComprobarActualizaciones : frmBase // Form
    {
        clsUpdateApp _clsUpdateApp = new clsUpdateApp();

        public frmComprobarActualizaciones()
        {
            InitializeComponent();
        }

        private void frmComprobarActualizaciones_Load(object sender, EventArgs e)
        {
            lblVersion.Text = Utiles.General.ObtenerVersionPublicacion();

            lblVErsionAviable.Text = _clsUpdateApp.GetUltimaVersion();           
        }

        private void frmComprobarActualizaciones_Shown(object sender, EventArgs e)
        {
            //clsUpdateApp.InstallUpdateSyncWithInfo();
                   
            Form _Frm = this;

            _clsUpdateApp.InstallUpdateAsyncWithInfo(ref lblDownload, ref _Frm);
        }

    }
 
